import javax.swing.*;

public class AboutPage {
    public static void main(String[] args) {
        SwingUtilities.invokeLater(() -> {
            JFrame frame = new JFrame("关于");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(300, 200);

            JPanel panel = new JPanel();
            panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
            panel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));

            JLabel titleLabel = new JLabel("公司名称");
            titleLabel.setAlignmentX(JLabel.CENTER_ALIGNMENT);
            panel.add(titleLabel);

            JLabel contactLabel = new JLabel("联系方式: 123-456-7890");
            contactLabel.setAlignmentX(JLabel.CENTER_ALIGNMENT);
            panel.add(contactLabel);

            JLabel copyrightLabel = new JLabel("© 2023 公司名称");
            copyrightLabel.setAlignmentX(JLabel.CENTER_ALIGNMENT);
            panel.add(Box.createVerticalStrut(10));
            panel.add(new JSeparator(JSeparator.HORIZONTAL));
            panel.add(Box.createVerticalStrut(10));
            panel.add(copyrightLabel);

            JLabel versionLabel = new JLabel("版本号: 1.0");
            versionLabel.setAlignmentX(JLabel.CENTER_ALIGNMENT);
            panel.add(versionLabel);

            frame.add(panel);
            frame.setVisible(true);
        });
    }
}
